package com.ruoyi.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客户订单计划对象 cs_order_plan
 * 
 * @author lishouzhuang
 * @date 2025-09-02
 */
public class CsOrderPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 唯一主键ID */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 客户编号 */
    @Excel(name = "客户编号")
    private String customerNo;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 客户简称 */
    @Excel(name = "客户简称")
    private String customerNickName;

    /** 产品类型 */
    @Excel(name = "产品类型")
    private String productType;

    /** 料号 */
    @Excel(name = "料号")
    private String materialNumber;

    /** 订单状态 (如:未开始/生产中/待包装/已完成/已延期) */
    @Excel(name = "订单状态 (如:未开始/生产中/待包装/已完成/已延期)")
    private String orderStatus;

    /** 模具号 */
    @Excel(name = "模具号")
    private String moldNumber;

    /** 下单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 截止日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "截止日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadlineDate;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 订单量 */
    @Excel(name = "订单量")
    private Long orderQuantity;

    /** 已交付数量 */
    @Excel(name = "已交付数量")
    private Long deliveredQuantity;

    /** 成品库存 */
    @Excel(name = "成品库存")
    private Long finishedGoodsInventory;

    /** 未包装数量 */
    @Excel(name = "未包装数量")
    private Long unpackagedQuantity;

    /** 待产量 */
    @Excel(name = "待产量")
    private Long pendingProduction;

    /** 材料库存 */
    @Excel(name = "材料库存")
    private Long materialInventory;

    /** 材料规格 */
    @Excel(name = "材料规格")
    private String materialSpecification;

    /** 所需材料 */
    @Excel(name = "所需材料")
    private String materialRequired;

    /** 包材 */
    @Excel(name = "包材")
    private String packagingMaterial;

    /** 格数 */
    @Excel(name = "格数")
    private String gridCount;

    /** 拓展字段 */
    @Excel(name = "拓展字段")
    private String ext;

    /** 删除标志（0代表存在 2代表删除） */
    @Excel(name = "删除标志", readConverterExp = "0=代表存在,2=代表删除")
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNumber(String orderNumber) 
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber() 
    {
        return orderNumber;
    }
    public void setCustomerNo(String customerNo) 
    {
        this.customerNo = customerNo;
    }

    public String getCustomerNo() 
    {
        return customerNo;
    }
    public void setCustomerName(String customerName) 
    {
        this.customerName = customerName;
    }

    public String getCustomerName() 
    {
        return customerName;
    }
    public void setCustomerNickName(String customerNickName) 
    {
        this.customerNickName = customerNickName;
    }

    public String getCustomerNickName() 
    {
        return customerNickName;
    }
    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }
    public void setMaterialNumber(String materialNumber) 
    {
        this.materialNumber = materialNumber;
    }

    public String getMaterialNumber() 
    {
        return materialNumber;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setMoldNumber(String moldNumber) 
    {
        this.moldNumber = moldNumber;
    }

    public String getMoldNumber() 
    {
        return moldNumber;
    }
    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }
    public void setDeadlineDate(Date deadlineDate) 
    {
        this.deadlineDate = deadlineDate;
    }

    public Date getDeadlineDate() 
    {
        return deadlineDate;
    }
    public void setProjectName(String projectName) 
    {
        this.projectName = projectName;
    }

    public String getProjectName() 
    {
        return projectName;
    }
    public void setOrderQuantity(Long orderQuantity) 
    {
        this.orderQuantity = orderQuantity;
    }

    public Long getOrderQuantity() 
    {
        return orderQuantity;
    }
    public void setDeliveredQuantity(Long deliveredQuantity) 
    {
        this.deliveredQuantity = deliveredQuantity;
    }

    public Long getDeliveredQuantity() 
    {
        return deliveredQuantity;
    }
    public void setFinishedGoodsInventory(Long finishedGoodsInventory) 
    {
        this.finishedGoodsInventory = finishedGoodsInventory;
    }

    public Long getFinishedGoodsInventory() 
    {
        return finishedGoodsInventory;
    }
    public void setUnpackagedQuantity(Long unpackagedQuantity) 
    {
        this.unpackagedQuantity = unpackagedQuantity;
    }

    public Long getUnpackagedQuantity() 
    {
        return unpackagedQuantity;
    }
    public void setPendingProduction(Long pendingProduction) 
    {
        this.pendingProduction = pendingProduction;
    }

    public Long getPendingProduction() 
    {
        return pendingProduction;
    }
    public void setMaterialInventory(Long materialInventory) 
    {
        this.materialInventory = materialInventory;
    }

    public Long getMaterialInventory() 
    {
        return materialInventory;
    }
    public void setMaterialSpecification(String materialSpecification) 
    {
        this.materialSpecification = materialSpecification;
    }

    public String getMaterialSpecification() 
    {
        return materialSpecification;
    }
    public void setMaterialRequired(String materialRequired) 
    {
        this.materialRequired = materialRequired;
    }

    public String getMaterialRequired() 
    {
        return materialRequired;
    }
    public void setPackagingMaterial(String packagingMaterial) 
    {
        this.packagingMaterial = packagingMaterial;
    }

    public String getPackagingMaterial() 
    {
        return packagingMaterial;
    }
    public void setGridCount(String gridCount) 
    {
        this.gridCount = gridCount;
    }

    public String getGridCount() 
    {
        return gridCount;
    }
    public void setExt(String ext) 
    {
        this.ext = ext;
    }

    public String getExt() 
    {
        return ext;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("customerNo", getCustomerNo())
            .append("customerName", getCustomerName())
            .append("customerNickName", getCustomerNickName())
            .append("productType", getProductType())
            .append("materialNumber", getMaterialNumber())
            .append("orderStatus", getOrderStatus())
            .append("moldNumber", getMoldNumber())
            .append("orderDate", getOrderDate())
            .append("deadlineDate", getDeadlineDate())
            .append("projectName", getProjectName())
            .append("orderQuantity", getOrderQuantity())
            .append("deliveredQuantity", getDeliveredQuantity())
            .append("finishedGoodsInventory", getFinishedGoodsInventory())
            .append("unpackagedQuantity", getUnpackagedQuantity())
            .append("pendingProduction", getPendingProduction())
            .append("materialInventory", getMaterialInventory())
            .append("materialSpecification", getMaterialSpecification())
            .append("materialRequired", getMaterialRequired())
            .append("packagingMaterial", getPackagingMaterial())
            .append("gridCount", getGridCount())
            .append("ext", getExt())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
